package com.briup.smartcity_group1.dao.ext;

import com.briup.smartcity_group1.bean.basic.BaseUser;

import java.util.Collection;

/**
 * 实现自定义的对用户信息的数据库操作
 * @Author lining
 * @Date 2022/12/31
 */
public interface BaseUserExtMapper {
    //根据业务需求，编写方法
    BaseUser selectByName(String name);
    //根据手机号查询用户信息
    BaseUser selectByPhone(String telephone);
    BaseUser selectByEmail(String email);
    BaseUser selectByNameOrPhoneOrEmail(String username, String telephone, String email);
    Collection<BaseUser> findBaseUserLikeNameAndRole(String username, Integer role);
}
